package com.sophossystems.client.asmon.dto;


import java.io.Serializable;

import java.util.Date;

public class ClientePMoralesDTO implements Serializable
{
	/**
	 * 
	 */
	private static final long serialVersionUID = 1240018193068979808L;
	
	/** 
	 * This attribute maps to the table CLIENTES in the CLIENTES table.
	 */
	protected ClienteDTO cliente;
	
	
	/**
	 * @return the cliente
	 */
	public ClienteDTO getCliente() {
		return cliente;
	}

	/**
	 * @param cliente the cliente to set
	 */
	public void setCliente(ClienteDTO cliente) {
		this.cliente = cliente;
	}

	/** 
	 * This attribute maps to the column idCliente in the CLIENTE_P_MORALES table.
	 */
	protected int idCliente;

	/** 
	 * This attribute maps to the column razonSocial in the CLIENTE_P_MORALES table.
	 */
	protected String razonSocial;

	/** 
	 * This attribute maps to the column fInicioActividad in the CLIENTE_P_MORALES table.
	 */
	protected Date inicioActividad;

	/**
	 * @return the inicioActividad
	 */
	public Date getInicioActividad() {
		return inicioActividad;
	}

	/**
	 * @param inicioActividad the inicioActividad to set
	 */
	public void setInicioActividad(Date inicioActividad) {
		this.inicioActividad = inicioActividad;
	}

	

	/** 
	 * This attribute maps to the column tel1 in the CLIENTE_P_MORALES table.
	 */
	protected String tel1;


	/** 
	 * This attribute maps to the column ext1 in the CLIENTE_P_MORALES table.
	 */
	protected String ext1;


	/** 
	 * This attribute maps to the column tel2 in the CLIENTE_P_MORALES table.
	 */
	protected String tel2;

	/** 
	 * This attribute maps to the column ext2 in the CLIENTE_P_MORALES table.
	 */
	protected String ext2;

	/** 
	 * This attribute maps to the column email in the CLIENTE_P_MORALES table.
	 */
	protected String email;

	/** 
	 * This attribute maps to the column tipoActividad in the CLIENTE_P_MORALES table.
	 */
	protected String tipoActividad;

	/** 
	 * This attribute maps to the column tipoRegimen in the CLIENTE_P_MORALES table.
	 */
	protected String tipoRegimen;

	/** 
	 * This attribute maps to the column antecedentes in the CLIENTE_P_MORALES table.
	 */
	protected String antecedentes;

	/** 
	 * This attribute maps to the column recomienda in the CLIENTE_P_MORALES table.
	 */
	protected String recomienda;

	/** 
	 * This attribute maps to the column idDireccion in the CLIENTE_P_MORALES table.
	 */
	protected int idDireccion;

	/** 
	 * This attribute represents whether the primitive attribute idDireccion is null.
	 */
	protected boolean idDireccionNull = true;
	
	
	protected int idClienteGeneral;
	
	

	/**
	 * @return the idClienteGeneral
	 */
	public int getIdClienteGeneral() {
		return idClienteGeneral;
	}

	/**
	 * @param idClienteGeneral the idClienteGeneral to set
	 */
	public void setIdClienteGeneral(int idClienteGeneral) {
		this.idClienteGeneral = idClienteGeneral;
	}

	/**
	 * Method 'ClientePMorales'
	 * 
	 */
	public ClientePMoralesDTO()
	{
	}

	/**
	 * Method 'getIdCliente'
	 * 
	 * @return int
	 */
	public int getIdCliente()
	{
		return idCliente;
	}

	/**
	 * Method 'setIdCliente'
	 * 
	 * @param idCliente
	 */
	public void setIdCliente(int idCliente)
	{
		this.idCliente = idCliente;
	}

	/**
	 * Method 'getRazonSocial'
	 * 
	 * @return String
	 */
	public String getRazonSocial()
	{
		return razonSocial;
	}

	/**
	 * Method 'setRazonSocial'
	 * 
	 * @param razonSocial
	 */
	public void setRazonSocial(String razonSocial)
	{
		this.razonSocial = razonSocial;
	}

	/**
	 * Method 'getFinicioactividad'
	 * 
	 * @return Date
	 */

	

	/**
	 * Method 'getTel1'
	 * 
	 * @return int
	 */
	public String getTel1()
	{
		return tel1;
	}

	/**
	 * Method 'setTel1'
	 * 
	 * @param tel1
	 */
	public void setTel1(String tel1)
	{
		this.tel1 = tel1;
	}

	/**
	 * Method 'getExt1'
	 * 
	 * @return int
	 */
	public String getExt1()
	{
		return ext1;
	}

	/**
	 * Method 'setExt1'
	 * 
	 * @param ext1
	 */
	public void setExt1(String ext1)
	{
		this.ext1 = ext1;
	}


	/**
	 * Method 'getTel2'
	 * 
	 * @return int
	 */
	public String getTel2()
	{
		return tel2;
	}

	/**
	 * Method 'setTel2'
	 * 
	 * @param tel2
	 */
	public void setTel2(String tel2)
	{
		this.tel2 = tel2;
	}

	/**
	 * Method 'getExt2'
	 * 
	 * @return int
	 */
	public String getExt2()
	{
		return ext2;
	}

	/**
	 * Method 'setExt2'
	 * 
	 * @param ext2
	 */
	public void setExt2(String ext2)
	{
		this.ext2 = ext2;
	}

	/**
	 * Method 'getEmail'
	 * 
	 * @return String
	 */
	public String getEmail()
	{
		return email;
	}

	/**
	 * Method 'setEmail'
	 * 
	 * @param email
	 */
	public void setEmail(String email)
	{
		this.email = email;
	}

	/**
	 * Method 'getTipoActividad'
	 * 
	 * @return String
	 */
	public String getTipoActividad()
	{
		return tipoActividad;
	}

	/**
	 * Method 'setTipoActividad'
	 * 
	 * @param tipoActividad
	 */
	public void setTipoActividad(String tipoActividad)
	{
		this.tipoActividad = tipoActividad;
	}

	/**
	 * Method 'getTipoRegimen'
	 * 
	 * @return String
	 */
	public String getTipoRegimen()
	{
		return tipoRegimen;
	}

	/**
	 * Method 'setTipoRegimen'
	 * 
	 * @param tipoRegimen
	 */
	public void setTipoRegimen(String tipoRegimen)
	{
		this.tipoRegimen = tipoRegimen;
	}

	/**
	 * Method 'getAntecedentes'
	 * 
	 * @return String
	 */
	public String getAntecedentes()
	{
		return antecedentes;
	}

	/**
	 * Method 'setAntecedentes'
	 * 
	 * @param antecedentes
	 */
	public void setAntecedentes(String antecedentes)
	{
		this.antecedentes = antecedentes;
	}

	/**
	 * Method 'getRecomienda'
	 * 
	 * @return String
	 */
	public String getRecomienda()
	{
		return recomienda;
	}

	/**
	 * Method 'setRecomienda'
	 * 
	 * @param recomienda
	 */
	public void setRecomienda(String recomienda)
	{
		this.recomienda = recomienda;
	}

	/**
	 * Method 'getIdDireccion'
	 * 
	 * @return int
	 */
	public int getIdDireccion()
	{
		return idDireccion;
	}

	/**
	 * Method 'setIdDireccion'
	 * 
	 * @param idDireccion
	 */
	public void setIdDireccion(int idDireccion)
	{
		this.idDireccion = idDireccion;
		this.idDireccionNull = false;
	}

	/**
	 * Method 'setIdDireccionNull'
	 * 
	 * @param value
	 */
	public void setIdDireccionNull(boolean value)
	{
		this.idDireccionNull = value;
	}

	/**
	 * Method 'isIdDireccionNull'
	 * 
	 * @return boolean
	 */
	public boolean isIdDireccionNull()
	{
		return idDireccionNull;
	}

	/**
	 * Method 'equals'
	 * 
	 * @param _other
	 * @return boolean
	 */
	@Override
	public boolean equals(Object _other)
	{
		if (_other == null) {
			return false;
		}
		
		if (_other == this) {
			return true;
		}
		
		if (!(_other instanceof ClientePMoralesDTO)) {
			return false;
		}
		
		final ClientePMoralesDTO _cast = (ClientePMoralesDTO) _other;
		if (idCliente != _cast.idCliente) {
			return false;
		}
		
		if (razonSocial == null ? _cast.razonSocial != razonSocial : !razonSocial.equals( _cast.razonSocial )) {
			return false;
		}
				
		if (tel1 == null ? _cast.tel1 != tel1 : !tel1.equals(_cast.tel1)) {
			return false;
		}
		
		if (ext1 == null ? _cast.ext1 != ext1 : !ext1.equals(_cast.ext1)) {
			return false;
		}
		
		if (tel2 == null ? _cast.tel2 != tel2 : !tel2.equals(_cast.tel2)) {
			return false;
		}
		
		if (ext2 == null ? _cast.ext2 != ext2 : !ext2.equals(_cast.ext2)) {
			return false;
		}
			
		if (email == null ? _cast.email != email : !email.equals( _cast.email )) {
			return false;
		}
		
		if (tipoActividad == null ? _cast.tipoActividad != tipoActividad : !tipoActividad.equals( _cast.tipoActividad )) {
			return false;
		}
		
		if (tipoRegimen == null ? _cast.tipoRegimen != tipoRegimen : !tipoRegimen.equals( _cast.tipoRegimen )) {
			return false;
		}
		
		if (antecedentes == null ? _cast.antecedentes != antecedentes : !antecedentes.equals( _cast.antecedentes )) {
			return false;
		}
		
		if (recomienda == null ? _cast.recomienda != recomienda : !recomienda.equals( _cast.recomienda )) {
			return false;
		}
		
		if (idDireccion != _cast.idDireccion) {
			return false;
		}
		
		if (idDireccionNull != _cast.idDireccionNull) {
			return false;
		}
		
		return true;
	}

	/**
	 * Method 'hashCode'
	 * 
	 * @return int
	 */
	@Override
	public int hashCode()
	{
		int _hashCode = 0;
		_hashCode = 29 * _hashCode + idCliente;
		if (razonSocial != null) {
			_hashCode = 29 * _hashCode + razonSocial.hashCode();
		}
	
		if (tel1 != null) {
			_hashCode = 29 * _hashCode + tel1.hashCode();
		}
		
		if (ext1 != null) {
			_hashCode = 29 * _hashCode + ext1.hashCode();
		}
		
		if (tel2 != null) {
			_hashCode = 29 * _hashCode + tel2.hashCode();
		}
		
		if (ext2 != null) {
			_hashCode = 29 * _hashCode + tel2.hashCode();
		}
		
		if (email != null) {
			_hashCode = 29 * _hashCode + email.hashCode();
		}
		
		if (tipoActividad != null) {
			_hashCode = 29 * _hashCode + tipoActividad.hashCode();
		}
		
		if (tipoRegimen != null) {
			_hashCode = 29 * _hashCode + tipoRegimen.hashCode();
		}
		
		if (antecedentes != null) {
			_hashCode = 29 * _hashCode + antecedentes.hashCode();
		}
		
		if (recomienda != null) {
			_hashCode = 29 * _hashCode + recomienda.hashCode();
		}
		
		_hashCode = 29 * _hashCode + idDireccion;
		_hashCode = 29 * _hashCode + (idDireccionNull ? 1 : 0);
		return _hashCode;
	}

	/**
	 * Method 'createPk'
	 * 
	 * @return ClientePMoralesPk
	 */
	public ClientePMoralesPkDTO createPk()
	{
		return new ClientePMoralesPkDTO(idCliente);
	}

	/**
	 * Method 'toString'
	 * 
	 * @return String
	 */
	@Override
	public String toString()
	{
		StringBuffer ret = new StringBuffer();
		ret.append( "com.sophossystems.client.asmon.dto.ClientePMorales: " );
		ret.append( "idCliente=" + idCliente );
		ret.append( ", razonSocial=" + razonSocial );
		ret.append( ", finicioactividad=" + inicioActividad );
		
		ret.append( ", tel1=" + tel1 );
		ret.append( ", ext1=" + ext1 );
		ret.append( ", tel2=" + tel2 );
		ret.append( ", ext2=" + ext2 );
		ret.append( ", email=" + email );
		ret.append( ", tipoActividad=" + tipoActividad );
		ret.append( ", tipoRegimen=" + tipoRegimen );
		ret.append( ", antecedentes=" + antecedentes );
		ret.append( ", recomienda=" + recomienda );
		ret.append( ", idDireccion=" + idDireccion );
		return ret.toString();
	}
	
	
	
   

}
